package com.jmxcfc.blfsc.ssq.util;

import com.jmxcfc.blfsc.ssq.common.Constants;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;

/**
 * 功能描述
 *
 * @author: pbs
 * @date: 2024年09月03日 10:49
 */
public class HttpUtils {

    private HttpUtils(){}

    /**
     * 创建请求体
     * @param requestJSONString
     * @return
     */
    public static HttpEntity<String> creatRequestEntity(String requestJSONString) {
        HttpHeaders headers = new HttpHeaders();
        headers.setContentType(MediaType.parseMediaType(Constants.MEDIA_TYPE_APPLICATION_JSON_UTF8));
        return new HttpEntity<>(requestJSONString, headers);
    }
}